<?php
$layout = new Tbs_Engine();

$baseDir = dirname(__FILE__).'/templates/';
$layout->setTemplateDir($baseDir);
$layout->LoadTemplate('admin.tpl');

// Load url
$layout->MergeField('applicationUrl',$this->applicationUrl());
$layout->MergeField('baseUrl',$this->baseUrl());
$layout->MergeField('controllername',$this->controllername);
$layout->MergeField('actionname',$this->actionname);
$layout->ObjectRef['translate']=&$this->translate;

                
// Load content 
$layout->MergeField('master_content',$this->layout()->content);
                   
$layout->Show();
?>